package com.lening.communitylog.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LogVo {

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private Long id;

    @ApiModelProperty(value = "登录用户")
    private String username;

    @ApiModelProperty(value = "操作系统")
    private String platform;

    @ApiModelProperty(value = "地址")
    private String uri;

    @ApiModelProperty(value = "请求方法")
    private String requestMethod;

    @ApiModelProperty(value = "协议")
    private String schema;

    @ApiModelProperty(value = "请求体")
    private String requestBody;

    @ApiModelProperty(value = "响应体")
    private String responseData;

    @ApiModelProperty(value = "ip")
    private String ip;

    @ApiModelProperty(value = "请求时间")
    private LocalDateTime requestTime;

    @ApiModelProperty(value = "响应时间")
    private LocalDateTime responseTime;
    @ApiModelProperty(value = "执行时间")
    private LocalDateTime executeTime;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    private List<String> tableNames;
}
